﻿using Library;
using Library.Cloud;
using Library.Mebis;
using Library.Persistence.Cloud;

namespace Cloud.BaseCode
{
    public class BasePage : ExtendedBasePage
    {
        protected CloudDao CloudDao()
        {
            return CloudDaoFactory.CloudDao();
        }
        
        protected MebisDao MebisDao()
        {
            return MebisDaoFactory.MebisDao();
        }

        protected CloudFirmaKullanici Kullanici()
        {
            if (Session["Kullanici"] == null)
                return null;
            return (CloudFirmaKullanici) Session["Kullanici"];
        }        
    }
}